package com.lcg.demo.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.lcg.demo.dao.ItemsMapper;
import com.lcg.demo.model.Items;
import com.lcg.demo.service.ItemsService;
@Service
public class ItemsServiceImpl implements ItemsService {
	
	@Resource
	private ItemsMapper itemsMapper;

	@Override
	public Items findItems(Integer id) {
		 
		return itemsMapper.selectByPrimaryKey(id);
	}

	@Override
	public int deleteItems(Integer id) {
		// TODO Auto-generated method stub
		return itemsMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insertItems(Items record) {
		// TODO Auto-generated method stub
		return itemsMapper.insertSelective(record);
	}

}
